<?php
namespace Home\Controller\PublicAction;
use Think\Controller;
/*
 * 用户控制器 2016.6.7
 * author:candy
 * 公共操作
 */
class GoodController extends Controller {
    
    public function _empty($name){
        $this->display("Event:404");      
    }

    public function index(){
        $this->display("Event:protocol");
    }

    //首页轮播图商品
    //GET 返回: [ { "id": 1, //商品id "pic": "image.jpg" //商品图片 }, { "id": 1, "pic": "image.jpg" }, { "id": 1, "pic": "image.jpg" } ... ]
    public function rollpic(){
    	
    }
    //GET
    public function indexgoodlist(){

    }

    //搜索框自动补全
    public function autosearch(){

    }

    //搜索结果
    //POST: { "word":"a", //关键词 "pageCount": 20, //煤业条数 "page": 1, //页数 "order": "default" //排序方式: default-默认 sell-销量 priceasc-价格升序 pricedesc-价格降序 "from": 100, //起始价格 "to": 200 //结束价格 }
    public function search(){

    }

    public function goodreview(){

    }

    //获取购物车商品详情
    public function cartgood(){

    }
    
    //商品详情
    public function gooddetail(){

    }
}